목차
파라메터를 Map 등으로 넘기지 말고 각각을 분리하여 명시적으로 넘기기. 타이딩 의 일종.
“
It’s common to see blocks of parameters passed in a map. This makes it hard to read and understand what data is required. It also opens up the horrific abuse of modifying the parameters for (implicit) use later. —Tidy first? A personal exercise in empirical software design
리팩토링 (책) 에서 말하는 Introduce parameter object 와 반대 방향.
목차 관련 글 New interface, old implementation “A personal exercise in empirical software design” One pile “Inline as much of the code as you need until it's all in one big pile.” Guard clauses “A personal exercise in empirical software design” Extract helper “The refactoring-aware among you will recognize "Extract method" in this tidying.” Reading order “A personal exercise in empirical software design” Explaining comments “Then you'd better explain any biology context in the code, even if it seems obvious to you.” 죽은 코드 “A personal exercise in empirical software design” First, After, Later, Never “A personal exercise in empirical software design 2부 중에서 발췌, 요약.” Separate tidying “A personal exercise in empirical software design” Move declaration and initialization together “A personal exercise in empirical software design” The Super Weight in Large Language Models “We propose a data-free method for identifying such parameters, termed super weights, using a single forward pas…” 리팩토링 “In essence, when you refactor, you are improving the design of the code after it has been written.” 경험적 소프트웨어 설계 “A personal exercise in empirical software design” Chunk statements “This one wins the prize for simplest tidying.” Cohesion order “A personal exercise in empirical software design에서는 "당장 결합도coupling를 낮출 수 없는 상황이라면 응집도cohesion라고 높여둬라"고 조언.” Explaining variables “A personal exercise in empirical software design” 설계를 언제 할까 “When we observe that a certain class of features is hard to add, we design until the pressure is relieved.” Explaining constants “A personal exercise in empirical software design” Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks “Pre-trained models with a differentiable access mechanism to explicit non-parametric memory can overcome this i…” When to annotate type “Thirdly, explicit types make it easier to write the program in the first place.”